﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewModel
{
    public class Shop
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public string Department { get; set; }
        public Area Area { get; set; }
        public Group Group { get; set; }
        public string UDF1 { get; set; }
        public string UDF2 { get; set; }
        public string UDF3 { get; set; }
        public string UDF4 { get; set; }
        public string UDF5 { get; set; }

        //databind property
        public string DisplayArea { get { return Area != null ? Area.Name : ""; } }
        public string DisplayGroup { get { return Group != null ? Group.Name : ""; } }
    }
}
